package pojo.dto;

import com.alibaba.fastjson.annotation.JSONField;
import org.springframework.stereotype.Component;

import java.sql.Timestamp;

/**
 * 用户记录类
 */
@Component
public class UserRecord {
    private int userId;                     //用户ID
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Timestamp orderTime;            //下单时间
    private long orderNumber;               //订单编号
    private double money;                   //订单金额
    private String operateType;             //操作类型

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public Timestamp getOrderTime() {
        return orderTime;
    }

    public void setOrderTime(Timestamp orderTime) {
        this.orderTime = orderTime;
    }

    public long getOrderNumber() {
        return orderNumber;
    }

    public void setOrderNumber(long orderNumber) {
        this.orderNumber = orderNumber;
    }

    public double getMoney() {
        return money;
    }

    public void setMoney(double money) {
        this.money = money;
    }

    public String getOperateType() {
        return operateType;
    }

    public void setOperateType(String operateType) {
        this.operateType = operateType;
    }

    @Override
    public String toString() {
        return "UserRecord{" +
                "userId=" + userId +
                ", orderTime=" + orderTime +
                ", orderNumber=" + orderNumber +
                ", money=" + money +
                ", operateType='" + operateType + '\'' +
                '}';
    }
}
